const cookieParser = require('cookie-parser')
const express=require('express')
const bodyParser = require('./tools/bodyParser')
const {verifyToken}=require('./tools/token')
const app=express()

app.use(express.static('./static'))
app.use(express.json())
app.use(bodyParser)
app.use(cookieParser())
app.use(express.urlencoded({extended:false}))
app.use('/',require('./router/index'))
app.use('/admin',verifyToken,require('./router/admin'))


app.listen(80)